package com.bwie.common.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠卷表
 * </p>
 *
 * @author liuxin
 * @since 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_coupon")
@ApiModel(value="TCoupon对象", description="优惠卷表")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠卷ID")
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Long couponId;

    @ApiModelProperty(value = "优惠卷名称")
    private String couponName;

    @ApiModelProperty(value = "使用规则")
    private String couponRule;

    @ApiModelProperty(value = "抵扣金额")
    private BigDecimal deductAmount;

    @ApiModelProperty(value = "折扣比例")
    private BigDecimal discount;

    @ApiModelProperty(value = "兑换所需积分")
    private Integer pointsRequired;

    @ApiModelProperty(value = "到期时间")
    private LocalDateTime expiryTime;

    @ApiModelProperty(value = "逻辑删除（0-正常，1-删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
